package com.baihan.angus.app.game.basic.bindingAdp.edittext;

import android.widget.EditText;

import androidx.databinding.BindingAdapter;

import com.baihan.angus.app.game.basic.utils.Loog;


public class EditTextBindingAdp {

    @BindingAdapter(value = {"addTextWatcher"}, requireAll = false)
    public static void textWatcher(EditText editText, SimpleTextWatcher textWatcher) {
        Loog.d("EditTextBindingAdp" + editText.toString() + " textWatcher = " + textWatcher);
        editText.addTextChangedListener(textWatcher);
    }

}
